package com.cdtu.room.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评价与反馈对象 feedback
 * 
 * @author hcc
 * @date 2024-02-27
 */
public class Feedback extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 评价与反馈ID */
    private Long feedbackId;

    /** 预约信息ID */
    @Excel(name = "预约信息ID")
    private Long reservationId;

    /** 反馈内容 */
    @Excel(name = "反馈内容")
    private String content;

    /** 反馈时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "反馈时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date feedbackTime;

    /** 评分 */
    @Excel(name = "评分")
    private String rating;

    /** 建议 */
    @Excel(name = "建议")
    private String recommendation;

    public void setFeedbackId(Long feedbackId) 
    {
        this.feedbackId = feedbackId;
    }

    public Long getFeedbackId() 
    {
        return feedbackId;
    }

    public void setReservationId(Long reservationId)
    {
        this.reservationId = reservationId;
    }

    public Long getReservationId()
    {
        return reservationId;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setFeedbackTime(Date feedbackTime) 
    {
        this.feedbackTime = feedbackTime;
    }

    public Date getFeedbackTime() 
    {
        return feedbackTime;
    }
    public void setRating(String rating) 
    {
        this.rating = rating;
    }

    public String getRating() 
    {
        return rating;
    }
    public void setRecommendation(String recommendation) 
    {
        this.recommendation = recommendation;
    }

    public String getRecommendation() 
    {
        return recommendation;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("feedbackId", getFeedbackId())
            .append("reservationId", getReservationId())
            .append("content", getContent())
            .append("feedbackTime", getFeedbackTime())
            .append("rating", getRating())
            .append("recommendation", getRecommendation())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
